---@class Battle.AttackState : Battle.StateBase
local AttackState = Battle.CreateClass("AttackState",Battle.StateBase)
Battle.AttackState = AttackState

function AttackState:OnEnter()
    self.skillId = self.data
    self:PlayAction()
end
function AttackState:OnExit(force)
    --if force then
    --    self.actor.skillSystem:EndSkill(self.skillId,true)
    --end
end
function AttackState:PlayAction()
    if self.isPlaying then return end
    self.isPlaying = true
    self.actor.eventSystem:FireEvent(Battle.Event.ActorAnimatorPlay, Battle.EventArgs.AnimatorPlayArgs:Create( "",self.skillId))
end